<?php
function OpenDB()
{
    $host="127.0.0.1";
    $user="root";
    $pwd="000000";
    $dbname="reservation";
    
    $link=mysqli_connect($host,$user,$pwd,$dbname);
    if(mysqli_connect_errno()==0)
    {
        mysqli_set_charset($link, "utf8");
        return($link);
    }
    else 
    {
        return(false);
    }
}